#include <math.h>

#include <iostream>
using namespace std;
int main() {
  int a, n;
  cin >> a >> n;
  cout << (int)pow(a, n) << endl;
}